The online racing simulator
Searching in All forums
(951 results)
Yisc[NL]
S3 licensed
Quote from Popughini :Is there any way of showing the time from one node to another node?

Yes, if those nodes are at actual splits, Lapper has functions to calculate time between splits.
If the nodes are custom made, you need to built that function your self, by storing the time at node 1 and 2 and then calculate the difference between that.
Yisc[NL]
S3 licensed
Quote from Popughini :Is there any way to put autobanned for users in other countries?

No, since LFS and Lapper can't detect from which country someone is coming.
Not to mention the fact that it is relatively easy to pretent coming from a different country using proxy servers etc.
Yisc[NL]
S3 licensed
Quote from 5Loody-g27 :You could set up registration window in the server?
So that the user name and password to log in to the server is different from the name of the license

Example: Event: onConnect
Show logged-on user name and password window, and it verifies the user name and password in's Register.txt file

if there was the difference in one of the two options are kicked from the server

Just like Bass-Driver, I made a registration system as well (after someone asked for it on this forum).
Not trying to steal the spotlight from Bass-Driver (great to see that you are helping people with Lapper as well), but here's what I made: https://www.lfs.net/forum/post/1856560#post1856560
Yisc[NL]
S3 licensed
This is not good:

9/7/2015 2:45:30 PM -> Syntax error in cfg file "./gui_admin_membership.lpr" at line #194
Wrong NULL index in an array...
Function 'onconnect' script aborted

It means that the onconnect event isn't working at all.
Can you upload your addonsused.lpr and your main LPR script?
In order to be able to do so:

-make a copy of both of those file to your desktop
-rename lpr to txt
-upload both files to this forum
Yisc[NL]
S3 licensed
The file you uploaded is the general Lapper logfile.
Somewhere there must be another "logs" folder, which will contain a file with the name ending on ERR.log
Can you please upload that?
Yisc[NL]
S3 licensed
Have you recently changed any code in Lapper, just before the problem you reported has started appearing?
If so, investigate the code you recently changed.
Besides that, it would be useful to see when the error occurs.
Does it happen when someone connects to your server, joins the track, etc. since that will point you into the direction of the Lapper event that is causing this error.
Yisc[NL]
S3 licensed
Hmm that's not helping to be honest (not your fault).
Did you recently changed something and after that, this started happening?
If so, reverse that change and see if it's gone.
It also might be useful to see if Lapper stops when someone connects to the server, or goes onto the track, etc.
With that, you could check during which event the problem occurs.
Yisc[NL]
S3 licensed
You need to look for a like with a similar name like this: 127.0.0.1-29990-ERR.log which are located in a "logs" folder.
Yisc[NL]
S3 licensed
Quote from 5Loody-g27 :Get a problem when running "to LFSLapper" program
Host: TIMER BOUNDED
and (Lost connection)!

Is there a solution to this problem?
or Is interface one of the members this problem ?

Sounds like a timer runs out of time or keeps running.
Check the logfiles of Lapper to see what is really happening.
Yisc[NL]
S3 licensed
Sadly there isn't a proper wiki.
Best thing to do is check "changes.txt" found in the "doc" folder.
That explains every command ever introduced.
Otherwise use this forum as "wiki" Smile
Yisc[NL]
S3 licensed
As far as I know, that isn't possible.
The whole code that is used to do things with PB, is hardcoded in Lapper.
Yisc[NL]
S3 licensed
Have a look in section:

##################################
#Options for idle player on track#
##################################

#$IdleExclude = "Lagamel,Gai-Luron"; # Usernames excluded for idle check

#$OnIdleTimeout1 = 60; # Idle timeout for OnIdleAction1 in seconds

Event OnIdle1( $userName ) # Player event
UserGroupFromFile( "idleExempt", "./idleexempt.txt" );
IF( UserInGroup( "idleExempt",$userName ) == 0 )
THEN
privMsg( langEngine( "%{main_idle1}%" ) );
ENDIF
EndEvent

#$OnIdleTimeout2 = 120; # Idle timeout for OnIdleAction2 in seconds

Event OnIdle2( $userName ) # Player event
UserGroupFromFile( "idleExempt", "./idleexempt.txt" );
IF ( UserInGroup( "idleExempt",$userName ) == 0 )
THEN
cmdLFS ( "/spec " . GetCurrentPlayerVar("Nickname") );
privMsg ( langEngine( "%{main_idle2}%" ) );
ENDIF
EndEvent

Yisc[NL]
S3 licensed
Quote from 5Loody-g27 :already can not enter the license, but I want to do because it can ?

I don't understand what you mean.
You asked if it was possible to do a check from within Lapper if people are or aren't allowed to login on your server.
Then I explained how to that and what needs to be done.

You need to create a file called license.txt (for example) and place that somewhere in your Lapper directory.
Then you need to create an LPR file (with the code I have given you) and place that in the "includes" directory of Lapper.
Then you need to adjust the file called "addonsused.lpr" which can also be found in the "includes" directory and add a line under "General includes" pointing to the LPR file you created earlier.
Then restart Lapper and then it will check every person connecting to your server, against the LFS usernames mentioned in the license.txt file.
If your name is in that file, you can procede, if not, you will get a ban.
Last edited by Yisc[NL], .
Yisc[NL]
S3 licensed
Excuses for the mistake in the ban code, I copied that from an older version of Lapper and didn't check the code properly as I was heading to bed.
The LFS Username is unique, so nobody can use your name.
Of course it is a different story with Nicknames, they can be used by anyone, but since the license check in Lapper is about LFS Usernames, nobody can enter the server as long as its LFS Username isn't in license.txt

In that same OnConnect event, you can add a line to send a global message, like: GlobalMsg ( "^7Connected: " . GetCurrentPlayerVar( "NickName") );

You can't show from which country someone is, since LFS can't detect that.
Yisc[NL]
S3 licensed
Then you need to do a check in the OnConnect event. First load the file, then check if the username is found in that file.
If not, ban that username.

-Create an empty LPR file and store that in your include directory
-Add the file name to "general includes" in addonsused.lpr
-Use the code below, to fill the empty LPR file you have just created


CatchEvent OnConnect( $userName ) # Player event
OnConnect_License();
EndCatchEvent

Sub OnConnect_License() # Player event
### Load usernames from file license.txt ###
UserGroupFromFile( "X", "./../license.txt" );

### Check if username is found in group X ###
IF ( UserInGroup( "X",GetCurrentPlayerVar( "UserName" ) ) == 0 )
THEN
PrivMsg( "^7Banned for breaking the rules too many times" );
cmdLFS( "/ban " . GetCurrentPlayerVar("Username") . " 14" );
ENDIF
EndSub

.. in the path to the license file, means you go up one directory from the current (which should be the includes folder) directory.
Of course you could put the license.txt in the includes folder as well.
14 means the player is banned for 14 days, of course you could set that to a higher value.
I think 999 days or 9999 days is the maximum (but you should check that, or maybe someone knows the maximum value)
Yisc[NL]
S3 licensed
I'm glad I could help you.
There is enough room for improvements on the script, but it's very functional as it is already.
Yisc[NL]
S3 licensed
Right, after a couple of hours I think I came up with the script you want.
Here are the steps to activate it:

-Download the file and rename it to teamchat.lpr
-Then store it in the "includes" folder of Lapper
-Open file "addonsused.lpr"
-Add a line under "General includes" saying: include( "./teamchat.lpr");
-Open file "teamchat.lpr"
-Adjust the path to tofus.txt , to the location it has in your Lapper directory (*)
-Start Lapper and the script should work

(*) Using ".." means you go one directory up from the current directory

Let me know if this is what you want or what you would like to be changed/added (I will help if requests are reasonable, but trying first your self, would be a good thing to learn to code within Lapper)
Last edited by Yisc[NL], .
Yisc[NL]
S3 licensed
Quote from LakynVonLegendaus :Hello, please, could any beautiful soul help me with Team Chat history code?

I want to store ONLY last 10 teamchat messages and then display it using 10 privButtons, problem is I only have made simple Teamchat code using openPrivTextButton and "IF useringroup" method which works fine but thats the best I can do, Im stuck Shrug

This isn't too hard to do with Lapper.
Can you please send me the code you already have, then I am willing to look into your request.
Last edited by Yisc[NL], .
Yisc[NL]
S3 licensed
Quote from cargame.nl :Try click on UDP in N-list (press N)

It switches to TCP. For some reason I need to do that here on vipnet.hr otherwise after some time I dont see anyone driving anymore after some time. And I am too lazy too find out why it's behaving like this here Taped Shut

It may not be related to your case, but do you have any bandwidth monitoring software on your pc?
We recently had someone on our servers, who couldn't see anyone on track, while all other people could.
In the end it turned out that he had bandwidth monitoring software installed, which caused this problem.
After switching it off, all was okay as it were before he installed it.
Yisc[NL]
S3 licensed
That's way too high and will certainly cause lag.
Yisc[NL]
S3 licensed
Sure if you know the time to split1 and the total time when reaching split2, you can calculate how long it took between split1 and 2.
Yisc[NL]
S3 licensed
You could try to change the power setting of your USB ports.
Select that it isn't allowed to go into power saving and see if that's a solution to your problem.

You could also try to see if there is a newer driver for you G27 or for your USB-ports / Motherboard.
Yisc[NL]
S3 licensed
Quote from obzelite :... more cash for more adding some coders rather than one person puttings in a few hours every so often when the mood strikes ...

If you really believe what you just said there, you have no idea how commited Scawen is.
His commitment goes way beyond "putting in a few hours every so often".
I can't believe all the moaning that keeps going on, on the forum.
We just got a great update bringing us a totaly new Westhill track with endless posibilities to create tracks and on top of that a huge performance improvement this weekend.
All distributed free of charge, while all people have paid for, was that game as it was at the time they bought it.
So even if Scawen would decide that enough is enough, nobody has any right to complain about that what so ever.
Yisc[NL]
S3 licensed
Quote from three_jump :Am I really the only one who thinks that W10 is a horrible POS?
Different font sizes every where, different dialog box styles, two different control panels featuring the same and different settings.
No visual difference between title and menu bar which really does the trick with drag and dropping windows. Some Apps can't be uninstalled, some now come with adverts and some have a uninstall option which does nothing.

Also this: https://imgur.com/iHge6RJ

You are right with the points you mentioned, but while W10 has been released now, the product is not finished by any means. Microsoft will keep working on it and most of the thing you mentioned are left overs from W8(.1) and will be transformed to the new W10 layout.
Have a go with this version
Yisc[NL]
S3 licensed
As said in a private message, have a go with this version.
FGED GREDG RDFGDR GSFDG